package com.kingtsoft.study.persist;

import com.kingtsoft.study.model.StudyHomework;
import com.kingtsoft.study.model.StudyHomeworkDetail;

import java.util.List;

public interface StudyHomeworkDetailMapper {
    int deleteByPrimaryKey(String id);

    int insert(StudyHomeworkDetail record);

    int insertSelective(StudyHomeworkDetail record);

    StudyHomeworkDetail selectByPrimaryKey(String id);

    StudyHomeworkDetail selectByHomeworkIdAndStudentId(String homeworkId, String studentId);

    int updateByPrimaryKeySelective(StudyHomeworkDetail record);

    int updateByPrimaryKey(StudyHomeworkDetail record);

    List<StudyHomeworkDetail> listAll(StudyHomeworkDetail studyHomeworkDetail);

    /**
     * 查询已经提交的作业
     *
     * @param studyHomeworkDetail
     * @return page info
     * @author jerry.pan
     * @date 2017-04-05 08:40:11
     */
    List<StudyHomeworkDetail> listCommitted(StudyHomeworkDetail studyHomeworkDetail);
}
